<?php


namespace App\Order;


class OrderProcess
{

    public $order = null;
    public $validator = null;

    /**
     * OrderProcess constructor.
     */
    public function __construct(Order $order, array $validator = [])
    {
        $this->order = $order;
        $this->validator =$validator;
    }
    public function process(Order  $order) {
        foreach ($this->validator as $v) {
            $v->validator();
        }
    }
}